// js文件
$(document).ready(function(){

//导航高亮
navLight();
function navLight(){
	$("#nav h1 a").blur();
	var str =	(window.location.href),
	arr = [ '', "index","index.php" ],
	u		=	str.split("/");
	if ($.inArray(u[4].toLowerCase(), arr) == -1) {
		$("#nav h1").removeClass();
		$("#nav").find("a[href*='/Demo/"+u[4]+"']").parent().addClass("hear");
	}
}

// 切换模板
$("form#sty_change :button").click(function(){
	//alert ($(this).attr('name'));
	$.post(APP+'/Base/changeStyle',
	{styleName:$.trim($(this).attr('name'))},
	function(a)	{
		if(a) {
			window.location.reload(true);
		}
	});
});

});//jq end